home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 7 / CD FunHouse 7 For The Macintosh (Wayzata)(1992).iso / • Adventureland • / • Adventures • / Battle of Britain 1 ••••• / Battle of Britain 1 еееее / card_5143.txt < prev    next >
Text File  |  1990-08-26  |  44KB  |  2,209 lines

  1. -- card: 5143 from stack: in
  2. -- bmap block id: 9269
  3. -- flags: 4000
  4. -- background id: 2789
  5. -- name: D
  6. ----- HyperTalk script -----
  7. on openCard
  8.  
  9.   global justVisiting,BBDATE,reset,bbtime,landtime
  10.   put 4 into standby
  11.   put 7 into ordered
  12.   put 8 into landed
  13.   repeat
  14.     if hilite of button ordered is true then
  15.       set hilite of button ordered to false
  16.       set hilite of button landed to true
  17.     end if
  18.     if hilite of button landed is true then
  19.       IF LANDTIME <BBTIME THEN
  20.         SET HILITE OF BUTTON LANDED TO FALSE          --new
  21.         set hilite of button standby to true
  22.  
  23.       end if
  24.     END IF
  25.     add 7 to standby
  26.     add 7 to ordered
  27.     add 7 to landed
  28.     if landed >43 then           --CHANGE
  29.       exit repeat
  30.     end if
  31.   end repeat
  32.  
  33.   if justVisiting is empty then
  34.     exit openCard
  35.   end if
  36.   put 2 into released
  37.   put 3 into avail
  38.   put 5 into patrol
  39.   HIDE CARD FIELD "SHUTDOWN"
  40.   repeat 6 TIMES
  41.     if hilite of button patrol is true then
  42.       send "go" to button patrol
  43.     else
  44.       if hilite of button released is true then
  45.         send "go" to button released
  46.       else
  47.         send "go" to button avail
  48.       end if
  49.     end if
  50.     add 7 to released
  51.     add 7 to avail
  52.     add 7 to patrol
  53.   end repeat
  54.  
  55.   if bbDate contains "AUG 26" THEN SET THE RECT OF CARD FIELD "HIDESQUADS" TO 372,0,512,342
  56.   if bbDate contains "29" THEN SET THE RECT OF CARD FIELD "HIDESQUADS" TO 436,0,512,342
  57.   if bbDate contains "SEPT 2" THEN SET THE RECT OF CARD FIELD "HIDESQUADS" TO 500,0,512,342
  58.   if reset =1 then
  59.     REPEAT WITH I =1 TO THE NUMBER OF BUTTONS
  60.       SET  HILITE OF BUTTON I TO FALSE
  61.     END REPEAT
  62.     SET HILITE OF BUTTON 4 TO TRUE
  63.     SET HILITE OF BUTTON 11 TO TRUE
  64.     SET HILITE OF BUTTON 18 TO TRUE
  65.     SET HILITE OF BUTTON 25 TO TRUE
  66.     SET HILITE OF BUTTON 32 TO TRUE
  67.     SET HILITE OF BUTTON 39 TO TRUE
  68.     SET RECT OF CARD FIELD "HIDESQUADS" TO 308,0,512,342
  69.     HIDE CARD FIELD "SHUTDOWN"
  70.     repeat with i =166 to 171
  71.       put empty into card field id i
  72.     end repeat
  73.   end if
  74. end openCard
  75. ON SHUTDOWN
  76.   SHOW CARD FIELD "SHUTDOWN" OF CARD "D"             --NEW
  77. END SHUTDOWN
  78. on closecard
  79.   hide card field "outofrange"
  80. end closecard
  81.  
  82.  
  83.  
  84.  
  85. -- part 64 (button)
  86. -- low flags: 00
  87. -- high flags: 0000
  88. -- rect: left=9 top=54 right=158 bottom=95
  89. -- title width / last selected line: 0
  90. -- icon id / first selected line: 0 / 0
  91. -- text alignment: 1
  92. -- font id: 0
  93. -- text size: 12
  94. -- style flags: 0
  95. -- line height: 16
  96. -- part name: Map
  97. ----- HyperTalk script -----
  98. on mouseUp
  99.   go to card "map"
  100. end mouseUp
  101.  
  102.  
  103.  
  104. -- part 121 (button)
  105. -- low flags: 00
  106. -- high flags: 0000
  107. -- rect: left=116 top=44 right=66 bottom=168
  108. -- title width / last selected line: 0
  109. -- icon id / first selected line: 0 / 0
  110. -- text alignment: 1
  111. -- font id: 0
  112. -- text size: 12
  113. -- style flags: 0
  114. -- line height: 16
  115. -- part name: 
  116. ----- HyperTalk script -----
  117. on mouseDown
  118.   put 28 into releaseDate
  119.   if hilite of ME is true then
  120.     show card field id releaseDate at the mouseh, the mousev
  121.   else
  122.     beep
  123.     exit mouseDown
  124.   end if
  125. end mouseDown
  126.  
  127. on mouseUp
  128.   put 28 into releaseDate
  129.   hide card field id releaseDate
  130. end mouseUp
  131.  
  132. on go
  133.   GLOBAL AVAIL,RELEASEDATE
  134.   put 3 into avail
  135.   put 28 into releaseDate
  136.   RELEASE
  137. END GO
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155. -- part 122 (button)
  156. -- low flags: 00
  157. -- high flags: 0000
  158. -- rect: left=116 top=65 right=85 bottom=168
  159. -- title width / last selected line: 0
  160. -- icon id / first selected line: 0 / 0
  161. -- text alignment: 1
  162. -- font id: 0
  163. -- text size: 12
  164. -- style flags: 0
  165. -- line height: 16
  166. -- part name: 
  167. ----- HyperTalk script -----
  168. on mouseUp
  169.   beep
  170.   if hilite of me is false then exit mouseUp
  171.   SHOW CARD FIELD "PUB" at the mouseh, the mousev
  172. end mouseUp
  173.  
  174. on go
  175.   put 4 into standby
  176.   if hilite of ME is true then
  177.     set the hilite of  ME to false
  178.     set the hilite of button standby to true
  179.   end if
  180. end go
  181.  
  182.  
  183.  
  184.  
  185.  
  186. -- part 123 (button)
  187. -- low flags: 00
  188. -- high flags: 4000
  189. -- rect: left=116 top=84 right=108 bottom=168
  190. -- title width / last selected line: 0
  191. -- icon id / first selected line: 0 / 0
  192. -- text alignment: 1
  193. -- font id: 0
  194. -- text size: 12
  195. -- style flags: 0
  196. -- line height: 16
  197. -- part name: 
  198. ----- HyperTalk script -----
  199. on mouseUp
  200.   beep
  201. end mouseUp
  202.  
  203.  
  204.  
  205.  
  206. -- part 124 (button)
  207. -- low flags: 00
  208. -- high flags: 0000
  209. -- rect: left=116 top=107 right=132 bottom=168
  210. -- title width / last selected line: 0
  211. -- icon id / first selected line: 0 / 0
  212. -- text alignment: 1
  213. -- font id: 0
  214. -- text size: 12
  215. -- style flags: 0
  216. -- line height: 16
  217. -- part name: 
  218. ----- HyperTalk script -----
  219. on mouseDown
  220.   put 2 into released
  221.   put 3 into avail
  222.  
  223.   if hilite of button released is true or hilite of button avail is true then
  224.     beep
  225.     show card field "nono" at the mouseh, the mousev
  226.   end if
  227. end mouseDown
  228.  
  229. on mouseUp
  230.   global warning
  231.   put 4 into standby
  232.   put "246,129" into coord     ---CHANGES
  233.   put 74 into idplane
  234.  
  235.   if hilite of button standby is true then
  236.     if warning is not "L" and warning is not "N" then
  237.       set hilite of button standby to false
  238.       set hilite of ME to true
  239.  
  240.       show button id idplane of card "map" at coord
  241.     else
  242.       beep
  243.       show card field "outOfRange" at the mouseh, the mousev
  244.     end if
  245.   end if
  246.   hide card field "nono"
  247. end mouseUp
  248.  
  249. on go
  250.   put 4 into standby
  251.   put "246,129" into coord     ---CHANGES
  252.   put 74 into idplane
  253.  
  254.  
  255.   set hilite of me to false
  256.   set hilite of button standby to true
  257.  
  258.   hide button id idplane of card "map" --at coord
  259.  
  260. end go
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270. -- part 125 (button)
  271. -- low flags: 00
  272. -- high flags: 0000
  273. -- rect: left=116 top=144 right=172 bottom=168
  274. -- title width / last selected line: 0
  275. -- icon id / first selected line: 0 / 0
  276. -- text alignment: 1
  277. -- font id: 0
  278. -- text size: 12
  279. -- style flags: 0
  280. -- line height: 16
  281. -- part name: SQD54D
  282. ----- HyperTalk script -----
  283. on mouseUp
  284.   --global warning,objective,range,range2
  285.   global avail,standby,patrol,detail,idplane,enroute,warning
  286.   if warning is empty then
  287.     beep
  288.     show card field "whatraid" at the mouseh, the mousev
  289.     exit mouseUp
  290.   end if
  291.  
  292.   put 3 into avail
  293.   put 4 into standby
  294.   put 5 into patrol
  295.   put 6 into detail                                         --CHANGES
  296.   put 74 into idplane
  297.   put "D" into enroute
  298.   detail
  299. end mouseUp
  300.  
  301. on go
  302.   global numSquads,force,avail,standby,patrol,detail,idplane,sorties
  303.   put 3 into avail
  304.   put 4 into standby
  305.   put 5 into patrol
  306.   put 6 into detail                                         --CHANGES
  307.   put 74 into idplane
  308.   put 166 into sorties
  309.   if hilite of button patrol is true or hilite of button standby is true then
  310.     add 3 to force                                        --CHANGES
  311.     set hilite of button patrol to false
  312.     set hilite of button standby to false
  313.   end if
  314.   if hilite of button avail is true then add 2 to force   --CHANGES
  315.   put the length of card field id sorties into exp
  316.   divide exp by 20
  317.   add exp to force
  318.   put "/" after card field id sorties
  319.   goa
  320. end go
  321.  
  322.  
  323. on results
  324.   global damage,force,bforce,fforce,done
  325.   global released,avail,releaseDate,base,coord,idplane,sorties
  326.   put 2 into released
  327.   put 3 into avail
  328.   put 28 into releaseDate                                 --CHANGES
  329.   put "D" into base
  330.   put "246,129" into coord     ---CHANGES
  331.   put 74 into idplane
  332.  
  333.   put 166 into sorties
  334.   resultsa
  335. end results
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345. -- part 126 (button)
  346. -- low flags: 00
  347. -- high flags: 0000
  348. -- rect: left=116 top=171 right=201 bottom=168
  349. -- title width / last selected line: 0
  350. -- icon id / first selected line: 0 / 0
  351. -- text alignment: 1
  352. -- font id: 0
  353. -- text size: 12
  354. -- style flags: 0
  355. -- line height: 16
  356. -- part name: 
  357. ----- HyperTalk script -----
  358. on mouseUp
  359.   global coord,patrol,detail,idplane
  360.   put "246,129" into coord     ---CHANGES
  361.   put 74 into idplane
  362.  
  363.   put 5 into patrol
  364.   put 6 into detail                                          --CHANGES
  365.  
  366.   land
  367. end mouseUp
  368.  
  369.  
  370.  
  371.  
  372.  
  373. -- part 127 (button)
  374. -- low flags: 00
  375. -- high flags: 0000
  376. -- rect: left=116 top=200 right=229 bottom=168
  377. -- title width / last selected line: 0
  378. -- icon id / first selected line: 0 / 0
  379. -- text alignment: 1
  380. -- font id: 0
  381. -- text size: 12
  382. -- style flags: 0
  383. -- line height: 16
  384. -- part name: 
  385. ----- HyperTalk script -----
  386. on mouseUp
  387.   beep
  388. end mouseUp
  389.  
  390.  
  391.  
  392.  
  393. -- part 128 (button)
  394. -- low flags: 00
  395. -- high flags: 0000
  396. -- rect: left=180 top=44 right=66 bottom=232
  397. -- title width / last selected line: 0
  398. -- icon id / first selected line: 0 / 0
  399. -- text alignment: 1
  400. -- font id: 0
  401. -- text size: 12
  402. -- style flags: 0
  403. -- line height: 16
  404. -- part name: 
  405. ----- HyperTalk script -----
  406. on mouseDown
  407.   put 60 into releaseDate                   --CHANGE
  408.   if hilite of ME is true then
  409.     show card field id releaseDate at the mouseh, the mousev
  410.   else
  411.     beep
  412.     exit mouseDown
  413.   end if
  414. end mouseDown
  415.  
  416. on mouseUp
  417.   put 60 into releaseDate                    --CHANGE
  418.   hide card field id releaseDate
  419. end mouseUp
  420.  
  421. on go
  422.   GLOBAL AVAIL,RELEASEDATE
  423.   put 10 into avail                           --CHANGES
  424.   put 60 into releaseDate
  425.   RELEASE
  426. END GO
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440. -- part 129 (button)
  441. -- low flags: 00
  442. -- high flags: 0000
  443. -- rect: left=180 top=65 right=85 bottom=232
  444. -- title width / last selected line: 0
  445. -- icon id / first selected line: 0 / 0
  446. -- text alignment: 1
  447. -- font id: 0
  448. -- text size: 12
  449. -- style flags: 0
  450. -- line height: 16
  451. -- part name: 
  452. ----- HyperTalk script -----
  453. on mouseup
  454.   beep
  455.   if hilite of me is false then exit mouseUp
  456.   SHOW CARD FIELD "PUB" at the mouseh, the mousev
  457. end mouseup
  458.  
  459. on go
  460.  
  461.   put 11 into standby
  462.   if hilite of me is true then
  463.     set the hilite of me to false
  464.     set the hilite of button standby to true
  465.   end if
  466. end go
  467.  
  468.  
  469.  
  470.  
  471.  
  472. -- part 28 (field)
  473. -- low flags: 81
  474. -- high flags: 2004
  475. -- rect: left=99 top=33 right=89 bottom=176
  476. -- title width / last selected line: 0
  477. -- icon id / first selected line: 0 / 0
  478. -- text alignment: 1
  479. -- font id: 3
  480. -- text size: 9
  481. -- style flags: 0
  482. -- line height: 10
  483. -- part name: releaseDate
  484. ----- HyperTalk script -----
  485. on mouseUp
  486.   hide card field "releaseDate"
  487. end mouseUp
  488.  
  489.  
  490.  
  491. -- part 130 (button)
  492. -- low flags: 00
  493. -- high flags: 4000
  494. -- rect: left=180 top=84 right=108 bottom=232
  495. -- title width / last selected line: 0
  496. -- icon id / first selected line: 0 / 0
  497. -- text alignment: 1
  498. -- font id: 0
  499. -- text size: 12
  500. -- style flags: 0
  501. -- line height: 16
  502. -- part name: 
  503. ----- HyperTalk script -----
  504. on mouseUp
  505.   beep
  506. end mouseUp
  507.  
  508.  
  509.  
  510.  
  511. -- part 131 (button)
  512. -- low flags: 00
  513. -- high flags: 0000
  514. -- rect: left=180 top=107 right=132 bottom=232
  515. -- title width / last selected line: 0
  516. -- icon id / first selected line: 0 / 0
  517. -- text alignment: 1
  518. -- font id: 0
  519. -- text size: 12
  520. -- style flags: 0
  521. -- line height: 16
  522. -- part name: 
  523. ----- HyperTalk script -----
  524. on mouseDown
  525.   put 9 into released
  526.   put 10 into avail
  527.   if hilite of button released is true or hilite of button avail is true then
  528.     beep
  529.     show card field "nono" at the mouseh, the mousev
  530.   end if
  531. end mouseDown
  532.  
  533. on mouseUp
  534.   global warning
  535.   put 11 into standby
  536.   put "261,129" into coord               --CHANGES
  537.   put 75 into idplane
  538.  
  539.   if hilite of button standby is true then
  540.     if warning is not "L" and warning is not "N" then
  541.       set hilite of button standby to false
  542.       set hilite of ME to true
  543.  
  544.       show button id idplane of card "map" at coord
  545.     else
  546.       beep
  547.       show card field "outOfRange" at the mouseh, the mousev
  548.     end if
  549.   end if
  550.   hide card field "nono"
  551. end mouseUp
  552.  
  553. on go
  554.   put 11 into standby                                     --CHANGES
  555.   put "261,129" into coord               --CHANGES
  556.   put 75 into idplane
  557.   set hilite of me to false
  558.   set hilite of button standby to true
  559.  
  560.   hide button id IDPLANE of card "map" --at coord
  561.  
  562. end go
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571. -- part 132 (button)
  572. -- low flags: 00
  573. -- high flags: 0000
  574. -- rect: left=180 top=144 right=172 bottom=232
  575. -- title width / last selected line: 0
  576. -- icon id / first selected line: 0 / 0
  577. -- text alignment: 1
  578. -- font id: 0
  579. -- text size: 12
  580. -- style flags: 0
  581. -- line height: 16
  582. -- part name: SQD65D
  583. ----- HyperTalk script -----
  584. on mouseUp
  585.   --global warning,objective,range,range2
  586.   global avail,standby,patrol,detail,idplane,enroute,warning
  587.   if warning is empty then
  588.     beep
  589.     show card field "whatraid" at the mouseh, the mousev
  590.     exit mouseUp
  591.   end if
  592.  
  593.   put 10 into avail
  594.   put 11 into standby
  595.   put 12 into patrol
  596.   put 13 into detail                                         --CHANGES
  597.   put 75 into idplane
  598.   put "D" into enroute
  599.   detail
  600. end mouseUp
  601.  
  602. on go
  603.   global numSquads,force,avail,standby,patrol,detail,idplane
  604.   put 10 into avail
  605.   put 11 into standby
  606.   put 12 into patrol
  607.   put 13 into detail                                         --CHANGES
  608.   put 75 into idplane
  609.   put 167 into sorties
  610.   if hilite of button patrol is true or hilite of button standby is true then
  611.     add 3 to force                                        --CHANGES
  612.     set hilite of button patrol to false
  613.     set hilite of button standby to false
  614.   end if
  615.   if hilite of button avail is true then add 2 to force  --CHANGES
  616.   put the length of card field id sorties into exp
  617.   divide exp by 20
  618.   add exp to force
  619.   put "/" after card field id sorties
  620.   goa
  621. end go
  622.  
  623.  
  624. on results
  625.   global damage,force,bforce,fforce,done
  626.   global released,avail,releaseDate,base,coord,idplane,sorties
  627.   put 9 into released
  628.   put 10 into avail
  629.   put 60 into releaseDate                                 --CHANGES
  630.   put "D" into base
  631.   put "261,129" into coord               --CHANGES
  632.   put 75 into idplane
  633.   put 167 into sorties
  634.   resultsa
  635. end results
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652. -- part 133 (button)
  653. -- low flags: 00
  654. -- high flags: 0000
  655. -- rect: left=180 top=171 right=201 bottom=232
  656. -- title width / last selected line: 0
  657. -- icon id / first selected line: 0 / 0
  658. -- text alignment: 1
  659. -- font id: 0
  660. -- text size: 12
  661. -- style flags: 0
  662. -- line height: 16
  663. -- part name: 
  664. ----- HyperTalk script -----
  665. on mouseUp
  666.   global coord,patrol,detail,idplane
  667.   put "261,129" into coord               --CHANGES
  668.   put 75 into idplane
  669.   put 12 into patrol
  670.   put 13 into detail                                          --CHANGES
  671.  
  672.   land
  673. end mouseUp
  674.  
  675.  
  676.  
  677.  
  678.  
  679. -- part 134 (button)
  680. -- low flags: 00
  681. -- high flags: 0000
  682. -- rect: left=180 top=200 right=229 bottom=232
  683. -- title width / last selected line: 0
  684. -- icon id / first selected line: 0 / 0
  685. -- text alignment: 1
  686. -- font id: 0
  687. -- text size: 12
  688. -- style flags: 0
  689. -- line height: 16
  690. -- part name: 
  691. ----- HyperTalk script -----
  692. on mouseUp
  693.   beep
  694. end mouseUp
  695.  
  696.  
  697.  
  698.  
  699. -- part 135 (button)
  700. -- low flags: 00
  701. -- high flags: 0000
  702. -- rect: left=244 top=44 right=66 bottom=296
  703. -- title width / last selected line: 0
  704. -- icon id / first selected line: 0 / 0
  705. -- text alignment: 1
  706. -- font id: 0
  707. -- text size: 12
  708. -- style flags: 0
  709. -- line height: 16
  710. -- part name: 
  711. ----- HyperTalk script -----
  712. on mouseDown
  713.   put 61 into releaseDate                   --CHANGE
  714.   if hilite of ME is true then
  715.     show card field id releaseDate at the mouseh, the mousev
  716.   else
  717.     beep
  718.     exit mouseDown
  719.   end if
  720. end mouseDown
  721.  
  722. on mouseUp
  723.   put 61 into releaseDate                    --CHANGE
  724.   hide card field id releaseDate
  725. end mouseUp
  726.  
  727. on go
  728.   GLOBAL AVAIL,RELEASEDATE
  729.   put 17 into avail                           --CHANGES
  730.   put 61 into releaseDate
  731.   RELEASE
  732. END GO
  733.  
  734.  
  735.  
  736.  
  737. -- part 136 (button)
  738. -- low flags: 00
  739. -- high flags: 0000
  740. -- rect: left=244 top=65 right=85 bottom=296
  741. -- title width / last selected line: 0
  742. -- icon id / first selected line: 0 / 0
  743. -- text alignment: 1
  744. -- font id: 0
  745. -- text size: 12
  746. -- style flags: 0
  747. -- line height: 16
  748. -- part name: 
  749. ----- HyperTalk script -----
  750. on mouseUp
  751.   beep
  752.   if hilite of me is false then exit mouseUp
  753.   SHOW CARD FIELD "PUB" at the mouseh, the mousev
  754. end mouseUp
  755.  
  756. on go
  757.  
  758.   put 18 into standby
  759.  
  760.   if hilite of me is true then
  761.     set the hilite of me to false
  762.     set the hilite of button standby to true
  763.   end if
  764.  
  765.  
  766. end go
  767.  
  768.  
  769.  
  770.  
  771.  
  772. -- part 137 (button)
  773. -- low flags: 00
  774. -- high flags: 4000
  775. -- rect: left=244 top=84 right=108 bottom=296
  776. -- title width / last selected line: 0
  777. -- icon id / first selected line: 0 / 0
  778. -- text alignment: 1
  779. -- font id: 0
  780. -- text size: 12
  781. -- style flags: 0
  782. -- line height: 16
  783. -- part name: 
  784. ----- HyperTalk script -----
  785. on mouseup
  786.   beep
  787. end mouseup
  788.  
  789.  
  790.  
  791.  
  792. -- part 138 (button)
  793. -- low flags: 00
  794. -- high flags: 0000
  795. -- rect: left=244 top=107 right=132 bottom=296
  796. -- title width / last selected line: 0
  797. -- icon id / first selected line: 0 / 0
  798. -- text alignment: 1
  799. -- font id: 0
  800. -- text size: 12
  801. -- style flags: 0
  802. -- line height: 16
  803. -- part name: 
  804. ----- HyperTalk script -----
  805. on mouseDown
  806.   put 16 into released             -- CHANGES
  807.   put 17 into avail
  808.  
  809.   if hilite of button released is true or hilite of button avail is true then
  810.     beep
  811.     show card field "nono" at the mouseh, the mousev
  812.   end if
  813. end mouseDown
  814.  
  815. on mouseUp
  816.   global warning
  817.   put 18 into standby
  818.   put "261,114" into coord
  819.   put 76 into idplane
  820.  
  821.   if hilite of button standby is true then
  822.     if warning is not "L" and warning is not "N" then
  823.       set hilite of button standby to false
  824.       set hilite of ME to true
  825.  
  826.       show button id idplane of card "map" at coord
  827.     else
  828.       beep
  829.       show card field "outOfRange" at the mouseh, the mousev
  830.     end if
  831.   end if
  832.   hide card field "nono"
  833. end mouseUp
  834.  
  835. on go
  836.   put 18 into standby
  837.   put "261,114" into coord
  838.   put 76 into idplane
  839.  
  840.   set hilite of me to false
  841.   set hilite of button standby to true
  842.  
  843.   hide button id idplane of card "map"
  844.  
  845. end go
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856.  
  857.  
  858. -- part 139 (button)
  859. -- low flags: 00
  860. -- high flags: 0000
  861. -- rect: left=244 top=144 right=172 bottom=296
  862. -- title width / last selected line: 0
  863. -- icon id / first selected line: 0 / 0
  864. -- text alignment: 1
  865. -- font id: 0
  866. -- text size: 12
  867. -- style flags: 0
  868. -- line height: 16
  869. -- part name: SQD74D
  870. ----- HyperTalk script -----
  871. on mouseUp
  872.   --global warning,objective,range,range2
  873.   global avail,standby,patrol,detail,idplane,enroute,warning
  874.   if warning is empty then
  875.     beep
  876.     show card field "whatraid" at the mouseh, the mousev
  877.     exit mouseUp
  878.   end if
  879.  
  880.   put 17 into avail
  881.   put 18 into standby
  882.   put 19 into patrol
  883.   put 20 into detail                                         --CHANGES
  884.   put 76 into idplane
  885.   put "D" into enroute
  886.   detail
  887. end mouseUp
  888.  
  889. on go
  890.   global numSquads,force,avail,standby,patrol,detail,idplane
  891.   put 17 into avail
  892.   put 18 into standby
  893.   put 19 into patrol
  894.   put 20 into detail                                         --CHANGES
  895.   put 76 into idplane
  896.   put 168 into sorties
  897.   if hilite of button patrol is true or hilite of button standby is true then
  898.     add 3 to force                                        --CHANGES
  899.     set hilite of button patrol to false
  900.     set hilite of button standby to false
  901.   end if
  902.   if hilite of button avail is true then add 2 to force     --CHANGES
  903.   put the length of card field id sorties into exp
  904.   divide exp by 20
  905.   add exp to force
  906.   put "/" after card field id sorties
  907.   goa
  908. end go
  909.  
  910.  
  911. on results
  912.   global damage,force,bforce,fforce,done
  913.   global released,avail,releaseDate,base,coord,idplane,sorties
  914.   put 16 into released
  915.   put 17 into avail
  916.   put 61 into releaseDate                                 --CHANGES
  917.   put "D" into base
  918.   put "261,114" into coord
  919.   put 76 into idplane
  920.   put 168 into sorties
  921.   resultsa
  922. end results
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937. -- part 140 (button)
  938. -- low flags: 00
  939. -- high flags: 0000
  940. -- rect: left=244 top=171 right=201 bottom=296
  941. -- title width / last selected line: 0
  942. -- icon id / first selected line: 0 / 0
  943. -- text alignment: 1
  944. -- font id: 0
  945. -- text size: 12
  946. -- style flags: 0
  947. -- line height: 16
  948. -- part name: 
  949. ----- HyperTalk script -----
  950. on mouseUp
  951.   global coord,patrol,detail,idplane
  952.   put "261,114" into coord
  953.   put 76 into idplane
  954.   put 19 into patrol
  955.   put 20 into detail                                          --CHANGES
  956.  
  957.   land
  958. end mouseUp
  959.  
  960.  
  961.  
  962.  
  963. -- part 141 (button)
  964. -- low flags: 00
  965. -- high flags: 0000
  966. -- rect: left=244 top=200 right=229 bottom=296
  967. -- title width / last selected line: 0
  968. -- icon id / first selected line: 0 / 0
  969. -- text alignment: 1
  970. -- font id: 0
  971. -- text size: 12
  972. -- style flags: 0
  973. -- line height: 16
  974. -- part name: 
  975. ----- HyperTalk script -----
  976. on mouseUp
  977.   beep
  978. end mouseUp
  979.  
  980.  
  981.  
  982.  
  983. -- part 142 (button)
  984. -- low flags: 00
  985. -- high flags: 0000
  986. -- rect: left=308 top=44 right=66 bottom=360
  987. -- title width / last selected line: 0
  988. -- icon id / first selected line: 0 / 0
  989. -- text alignment: 1
  990. -- font id: 0
  991. -- text size: 12
  992. -- style flags: 0
  993. -- line height: 16
  994. -- part name: 
  995. ----- HyperTalk script -----
  996. on mouseDown
  997.   put 62 into releaseDate                   --CHANGE
  998.   if hilite of ME is true then
  999.     show card field id releaseDate at the mouseh, the mousev
  1000.   else
  1001.     beep
  1002.     exit mouseDown
  1003.   end if
  1004. end mouseDown
  1005.  
  1006. on mouseUp
  1007.   put 62 into releaseDate                    --CHANGE
  1008.   hide card field id releaseDate
  1009. end mouseUp
  1010.  
  1011. on go
  1012.   GLOBAL AVAIL,RELEASEDATE
  1013.   put 24 into avail                           --CHANGES
  1014.   put 62 into releaseDate
  1015.   RELEASE
  1016. END GO
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033. -- part 144 (button)
  1034. -- low flags: 00
  1035. -- high flags: 0000
  1036. -- rect: left=308 top=65 right=85 bottom=360
  1037. -- title width / last selected line: 0
  1038. -- icon id / first selected line: 0 / 0
  1039. -- text alignment: 1
  1040. -- font id: 0
  1041. -- text size: 12
  1042. -- style flags: 0
  1043. -- line height: 16
  1044. -- part name: 
  1045. ----- HyperTalk script -----
  1046. on mouseUp
  1047.   beep
  1048.   if hilite of me is false then exit mouseUp
  1049.   SHOW CARD FIELD "PUB" at the mouseh, the mousev
  1050. end mouseUp
  1051.  
  1052. on go
  1053.  
  1054.   put 25 into standby
  1055.  
  1056.   if hilite of me is true then
  1057.     set the hilite of me to false
  1058.     set the hilite of button standby to true
  1059.   end if
  1060.  
  1061.  
  1062. end go
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068. -- part 62 (field)
  1069. -- low flags: 81
  1070. -- high flags: 2004
  1071. -- rect: left=301 top=36 right=90 bottom=376
  1072. -- title width / last selected line: 0
  1073. -- icon id / first selected line: 0 / 0
  1074. -- text alignment: 1
  1075. -- font id: 3
  1076. -- text size: 9
  1077. -- style flags: 0
  1078. -- line height: 10
  1079. -- part name: releaseDate4
  1080. ----- HyperTalk script -----
  1081. on mouseUp
  1082.   hide card field "releaseDate4"
  1083. end mouseUp
  1084.  
  1085.  
  1086.  
  1087. -- part 145 (button)
  1088. -- low flags: 00
  1089. -- high flags: 4000
  1090. -- rect: left=308 top=84 right=108 bottom=360
  1091. -- title width / last selected line: 0
  1092. -- icon id / first selected line: 0 / 0
  1093. -- text alignment: 1
  1094. -- font id: 0
  1095. -- text size: 12
  1096. -- style flags: 0
  1097. -- line height: 16
  1098. -- part name: 
  1099. ----- HyperTalk script -----
  1100. on mouseup
  1101.   beep
  1102. end mouseup
  1103.  
  1104.  
  1105.  
  1106.  
  1107. -- part 146 (button)
  1108. -- low flags: 00
  1109. -- high flags: 0000
  1110. -- rect: left=308 top=107 right=132 bottom=360
  1111. -- title width / last selected line: 0
  1112. -- icon id / first selected line: 0 / 0
  1113. -- text alignment: 1
  1114. -- font id: 0
  1115. -- text size: 12
  1116. -- style flags: 0
  1117. -- line height: 16
  1118. -- part name: 
  1119. ----- HyperTalk script -----
  1120. on mouseDown
  1121.   put 23 into released
  1122.   put 24 into avail
  1123.  
  1124.   if hilite of button released is true or hilite of button avail is true then
  1125.     beep
  1126.     show card field "nono" at the mouseh, the mousev
  1127.   end if
  1128. end mouseDown
  1129.  
  1130. on mouseUp
  1131.   global warning
  1132.   put 25 into standby
  1133.   put "231,114" into coord               --CHANGES
  1134.   put 77 into idplane
  1135.  
  1136.   if hilite of button standby is true then
  1137.     if warning is not "L" and warning is not "N" then
  1138.       set hilite of button standby to false
  1139.       set hilite of ME to true
  1140.  
  1141.       show button id idplane of card "map" at coord
  1142.     else
  1143.       beep
  1144.       show card field "outOfRange" at the mouseh, the mousev
  1145.     end if
  1146.   end if
  1147.   hide card field "nono"
  1148. end mouseUp
  1149.  
  1150. on go
  1151.   put 25 into standby
  1152.   put "231,114" into coord               --CHANGES
  1153.   put 77 into idplane
  1154.   set hilite of button standby to true
  1155.   SET HILITE OF ME TO FALSE
  1156.   hide button id idplane of card "map"
  1157.  
  1158. end go
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168. -- part 61 (field)
  1169. -- low flags: 81
  1170. -- high flags: 2004
  1171. -- rect: left=227 top=32 right=88 bottom=301
  1172. -- title width / last selected line: 0
  1173. -- icon id / first selected line: 0 / 0
  1174. -- text alignment: 1
  1175. -- font id: 3
  1176. -- text size: 9
  1177. -- style flags: 0
  1178. -- line height: 10
  1179. -- part name: releaseDate3
  1180. ----- HyperTalk script -----
  1181. on mouseUp
  1182.   hide card field "releaseDate3"
  1183. end mouseUp
  1184.  
  1185.  
  1186.  
  1187. -- part 147 (button)
  1188. -- low flags: 00
  1189. -- high flags: 0000
  1190. -- rect: left=308 top=144 right=172 bottom=360
  1191. -- title width / last selected line: 0
  1192. -- icon id / first selected line: 0 / 0
  1193. -- text alignment: 1
  1194. -- font id: 0
  1195. -- text size: 12
  1196. -- style flags: 0
  1197. -- line height: 16
  1198. -- part name: SQD41D
  1199. ----- HyperTalk script -----
  1200. on mouseUp
  1201.   --global warning,objective,range,range2
  1202.   global avail,standby,patrol,detail,idplane,enroute,warning
  1203.   if warning is empty then
  1204.     beep
  1205.     show card field "whatraid" at the mouseh, the mousev
  1206.     exit mouseUp
  1207.   end if
  1208.  
  1209.   put 24 into avail
  1210.   put 25 into standby
  1211.   put 26 into patrol
  1212.   put 27 into detail                                         --CHANGES
  1213.   put 77 into idplane
  1214.   put "D" into enroute
  1215.   detail
  1216. end mouseUp
  1217.  
  1218. on go
  1219.   global numSquads,force,avail,standby,patrol,detail,idplane
  1220.   put 24 into avail
  1221.   put 25 into standby
  1222.   put 26 into patrol
  1223.   put 27 into detail                                         --CHANGES
  1224.   put 77 into idplane
  1225.   put 169 into sorties
  1226.   if hilite of button patrol is true or hilite of button standby is true then
  1227.     add 3 to force                                        --CHANGES
  1228.     set hilite of button patrol to false
  1229.     set hilite of button standby to false
  1230.   end if
  1231.   if hilite of button avail is true then add 2 to force     --CHANGES
  1232.   put the length of card field id sorties into exp
  1233.   divide exp by 20
  1234.   add exp to force
  1235.   put "/" after card field id sorties
  1236.   goa
  1237. end go
  1238.  
  1239.  
  1240. on results
  1241.   global damage,force,bforce,fforce,done
  1242.   global released,avail,releaseDate,base,coord,idplane,sorties
  1243.   put 23 into released
  1244.   put 24 into avail
  1245.   put 62 into releaseDate                                 --CHANGES
  1246.   put "D" into base
  1247.   put "231,161" into coord
  1248.   put 77 into idplane
  1249.   put 169 into sorties
  1250.   resultsa
  1251. end results
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265. -- part 148 (button)
  1266. -- low flags: 00
  1267. -- high flags: 0000
  1268. -- rect: left=308 top=171 right=201 bottom=360
  1269. -- title width / last selected line: 0
  1270. -- icon id / first selected line: 0 / 0
  1271. -- text alignment: 1
  1272. -- font id: 0
  1273. -- text size: 12
  1274. -- style flags: 0
  1275. -- line height: 16
  1276. -- part name: 
  1277. ----- HyperTalk script -----
  1278. on mouseUp
  1279.   global coord,patrol,detail,idplane
  1280.   put "231,114" into coord               --CHANGES
  1281.   put 77 into idplane
  1282.   put 26 into patrol
  1283.   put 27 into detail                                          --CHANGES
  1284.  
  1285.   land
  1286. end mouseUp
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292. -- part 149 (button)
  1293. -- low flags: 00
  1294. -- high flags: 0000
  1295. -- rect: left=308 top=200 right=229 bottom=360
  1296. -- title width / last selected line: 0
  1297. -- icon id / first selected line: 0 / 0
  1298. -- text alignment: 1
  1299. -- font id: 0
  1300. -- text size: 12
  1301. -- style flags: 0
  1302. -- line height: 16
  1303. -- part name: 
  1304. ----- HyperTalk script -----
  1305. on mouseUp
  1306.   beep
  1307. end mouseUp
  1308.  
  1309.  
  1310.  
  1311. -- part 150 (button)
  1312. -- low flags: 00
  1313. -- high flags: 0000
  1314. -- rect: left=372 top=44 right=66 bottom=424
  1315. -- title width / last selected line: 0
  1316. -- icon id / first selected line: 0 / 0
  1317. -- text alignment: 1
  1318. -- font id: 0
  1319. -- text size: 12
  1320. -- style flags: 0
  1321. -- line height: 16
  1322. -- part name: 
  1323. ----- HyperTalk script -----
  1324. on mouseDown
  1325.   put 63 into releaseDate                   --CHANGE
  1326.   if hilite of ME is true then
  1327.     show card field id releaseDate at the mouseh, the mousev
  1328.   else
  1329.     beep
  1330.     exit mouseDown
  1331.   end if
  1332. end mouseDown
  1333.  
  1334. on mouseUp
  1335.   put 63 into releaseDate                    --CHANGE
  1336.   hide card field id releaseDate
  1337. end mouseUp
  1338.  
  1339. on go
  1340.   GLOBAL AVAIL,RELEASEDATE
  1341.   put 31 into avail                           --CHANGES
  1342.   put 63 into releaseDate
  1343.   RELEASE
  1344. END GO
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359.  
  1360.  
  1361.  
  1362.  
  1363. -- part 151 (button)
  1364. -- low flags: 00
  1365. -- high flags: 0000
  1366. -- rect: left=372 top=65 right=85 bottom=424
  1367. -- title width / last selected line: 0
  1368. -- icon id / first selected line: 0 / 0
  1369. -- text alignment: 1
  1370. -- font id: 0
  1371. -- text size: 12
  1372. -- style flags: 0
  1373. -- line height: 16
  1374. -- part name: 
  1375. ----- HyperTalk script -----
  1376. on mouseUp
  1377.   beep
  1378.   if hilite of me is false then exit mouseUp
  1379.   SHOW CARD FIELD "PUB" at the mouseh, the mousev
  1380. end mouseUp
  1381.  
  1382. on go
  1383.  
  1384.   put 32 into standby
  1385.  
  1386.   if hilite of me is true then
  1387.     set the hilite of me to false
  1388.     set the hilite of button standby to true
  1389.   end if
  1390.  
  1391.  
  1392. end go
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398. -- part 152 (button)
  1399. -- low flags: 00
  1400. -- high flags: 4000
  1401. -- rect: left=372 top=84 right=108 bottom=424
  1402. -- title width / last selected line: 0
  1403. -- icon id / first selected line: 0 / 0
  1404. -- text alignment: 1
  1405. -- font id: 0
  1406. -- text size: 12
  1407. -- style flags: 0
  1408. -- line height: 16
  1409. -- part name: 
  1410. ----- HyperTalk script -----
  1411. on mouseup
  1412.   beep
  1413. end mouseup
  1414.  
  1415.  
  1416.  
  1417.  
  1418. -- part 175 (button)
  1419. -- low flags: 00
  1420. -- high flags: 0000
  1421. -- rect: left=372 top=108 right=132 bottom=424
  1422. -- title width / last selected line: 0
  1423. -- icon id / first selected line: 0 / 0
  1424. -- text alignment: 1
  1425. -- font id: 0
  1426. -- text size: 12
  1427. -- style flags: 0
  1428. -- line height: 16
  1429. -- part name: 
  1430. ----- HyperTalk script -----
  1431. on mouseDown
  1432.   put 30 into released
  1433.   put 31 into avail
  1434.  
  1435.   if hilite of button released is true or hilite of button avail is true then
  1436.     beep
  1437.     show card field "nono" at the mouseh, the mousev
  1438.   end if
  1439. end mouseDown
  1440.  
  1441. on mouseUp
  1442.   global warning
  1443.   put 32 into standby
  1444.   put "231,129" into coord               --CHANGES
  1445.   put 78 into idplane
  1446.  
  1447.   if hilite of button standby is true then
  1448.     if warning is not "L" and warning is not "N" then
  1449.       set hilite of button standby to false
  1450.       set hilite of ME to true
  1451.  
  1452.       show button id idplane of card "map" at coord
  1453.     else
  1454.       beep
  1455.       show card field "outOfRange" at the mouseh, the mousev
  1456.     end if
  1457.   end if
  1458.   hide card field "nono"
  1459. end mouseUp
  1460.  
  1461. on go
  1462.   put 32 into standby
  1463.   put "231,129" into coord               --CHANGES
  1464.   put 78 into idplane
  1465.   set hilite of me to false
  1466.   set hilite of button standby to true
  1467.  
  1468.   hide button id idplane of card "map"
  1469. end go
  1470.  
  1471.  
  1472.  
  1473.  
  1474.  
  1475. -- part 154 (button)
  1476. -- low flags: 00
  1477. -- high flags: 0000
  1478. -- rect: left=372 top=144 right=172 bottom=424
  1479. -- title width / last selected line: 0
  1480. -- icon id / first selected line: 0 / 0
  1481. -- text alignment: 1
  1482. -- font id: 0
  1483. -- text size: 12
  1484. -- style flags: 0
  1485. -- line height: 16
  1486. -- part name: SQ222D
  1487. ----- HyperTalk script -----
  1488. on mouseUp
  1489.   --global warning,objective,range,range2
  1490.   global avail,standby,patrol,detail,idplane,enroute,warning
  1491.   if warning is empty then
  1492.     beep
  1493.     show card field "whatraid" at the mouseh, the mousev
  1494.     exit mouseUp
  1495.   end if
  1496.  
  1497.   put 31 into avail
  1498.   put 32 into standby
  1499.   put 33 into patrol
  1500.   put 34 into detail                                         --CHANGES
  1501.   put 78 into idplane
  1502.   put "D" into enroute
  1503.   detail
  1504. end mouseUp
  1505.  
  1506. on go
  1507.   global numSquads,force,avail,standby,patrol,detail,idplane
  1508.   put 31 into avail
  1509.   put 32 into standby
  1510.   put 33 into patrol
  1511.   put 34 into detail                                         --CHANGES
  1512.   put 78 into idplane
  1513.   put 170 into sorties
  1514.   if hilite of button patrol is true or hilite of button standby is true then
  1515.     add 3 to force                                        --CHANGES
  1516.     set hilite of button patrol to false
  1517.     set hilite of button standby to false
  1518.   end if
  1519.   if hilite of button avail is true then add 2 to force     --CHANGES
  1520.   put the length of card field id sorties into exp
  1521.   divide exp by 20
  1522.   add exp to force
  1523.   put "/" after card field id sorties
  1524.   goa
  1525. end go
  1526.  
  1527.  
  1528. on results
  1529.   global damage,force,bforce,fforce,done
  1530.   global released,avail,releaseDate,base,coord,idplane,sorties
  1531.   put 30 into released
  1532.   put 31 into avail
  1533.   put 63 into releaseDate                                 --CHANGES
  1534.   put "D" into base
  1535.   put "231,129" into coord               --CHANGES
  1536.   put 78 into idplane
  1537.   put 170 into sorties
  1538.   resultsa
  1539. end results
  1540.  
  1541.  
  1542.  
  1543.  
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552.  
  1553.  
  1554. -- part 155 (button)
  1555. -- low flags: 00
  1556. -- high flags: 0000
  1557. -- rect: left=372 top=171 right=201 bottom=424
  1558. -- title width / last selected line: 0
  1559. -- icon id / first selected line: 0 / 0
  1560. -- text alignment: 1
  1561. -- font id: 0
  1562. -- text size: 12
  1563. -- style flags: 0
  1564. -- line height: 16
  1565. -- part name: 
  1566. ----- HyperTalk script -----
  1567. on mouseUp
  1568.   global coord,patrol,detail,idplane
  1569.   put "231,129" into coord               --CHANGES
  1570.   put 78 into idplane
  1571.   put 33 into patrol
  1572.   put 34 into detail                                          --CHANGES
  1573.  
  1574.   land
  1575. end mouseUp
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582. -- part 156 (button)
  1583. -- low flags: 00
  1584. -- high flags: 0000
  1585. -- rect: left=372 top=200 right=229 bottom=424
  1586. -- title width / last selected line: 0
  1587. -- icon id / first selected line: 0 / 0
  1588. -- text alignment: 1
  1589. -- font id: 0
  1590. -- text size: 12
  1591. -- style flags: 0
  1592. -- line height: 16
  1593. -- part name: 
  1594. ----- HyperTalk script -----
  1595. on mouseUp
  1596.   beep
  1597. end mouseUp
  1598.  
  1599.  
  1600.  
  1601. -- part 157 (button)
  1602. -- low flags: 00
  1603. -- high flags: 0000
  1604. -- rect: left=436 top=43 right=67 bottom=488
  1605. -- title width / last selected line: 0
  1606. -- icon id / first selected line: 0 / 0
  1607. -- text alignment: 1
  1608. -- font id: 0
  1609. -- text size: 12
  1610. -- style flags: 0
  1611. -- line height: 16
  1612. -- part name: 
  1613. ----- HyperTalk script -----
  1614. on mouseDown
  1615.   put 37 into released
  1616.   put 109 into releaseDate
  1617.  
  1618.   if hilite of button released is true then
  1619.     show card field  id releaseDate at the mouseh, the mousev
  1620.   end if
  1621. end mouseDown
  1622. on mouseUp
  1623.   put 109 into releaseDate
  1624.   hide card field id releaseDate
  1625. end mouseUp
  1626.  
  1627. on go
  1628.   put 37 into released
  1629.   put 38 into avail
  1630.   put 109 into releaseDate
  1631.  
  1632.   subtract 1 from word 2 of line 2 of card field id releaseDate
  1633.   if word 2 of line 2 of card field id releaseDate is 1 then
  1634.     put DAY into word 3 of line 2 of card field id releaseDate
  1635.   else
  1636.     put DAYS into word 3 of line 2 of card field id releaseDate
  1637.     if word 2 of line 2 of card field id releaseDate <1 then
  1638.       put 4 into word 2 of line 2 of card field id releaseDate
  1639.       set hilite of button released to false
  1640.       set hilite of button avail to true
  1641.     end if
  1642.   end if
  1643. end go
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.  
  1660.  
  1661. -- part 158 (button)
  1662. -- low flags: 00
  1663. -- high flags: 0000
  1664. -- rect: left=436 top=66 right=85 bottom=488
  1665. -- title width / last selected line: 0
  1666. -- icon id / first selected line: 0 / 0
  1667. -- text alignment: 1
  1668. -- font id: 0
  1669. -- text size: 12
  1670. -- style flags: 0
  1671. -- line height: 16
  1672. -- part name: 
  1673. ----- HyperTalk script -----
  1674. on mouseUp
  1675.   beep
  1676.   if hilite of me is false then exit mouseUp
  1677.   SHOW CARD FIELD "PUB" at the mouseh, the mousev
  1678. end mouseUp
  1679.  
  1680. on go
  1681.  
  1682.   put 39 into standby
  1683.  
  1684.   if hilite of me is true then
  1685.     set the hilite of me to false
  1686.     set the hilite of button standby to true
  1687.   end if
  1688.  
  1689.  
  1690. end go
  1691.  
  1692.  
  1693.  
  1694.  
  1695. -- part 167 (field)
  1696. -- low flags: 00
  1697. -- high flags: 0000
  1698. -- rect: left=187 top=254 right=307 bottom=224
  1699. -- title width / last selected line: 0
  1700. -- icon id / first selected line: 0 / 0
  1701. -- text alignment: 0
  1702. -- font id: 3
  1703. -- text size: 9
  1704. -- style flags: 0
  1705. -- line height: 10
  1706. -- part name: sorties
  1707.  
  1708.  
  1709. -- part 159 (button)
  1710. -- low flags: 00
  1711. -- high flags: 4000
  1712. -- rect: left=436 top=84 right=107 bottom=488
  1713. -- title width / last selected line: 0
  1714. -- icon id / first selected line: 0 / 0
  1715. -- text alignment: 1
  1716. -- font id: 0
  1717. -- text size: 12
  1718. -- style flags: 0
  1719. -- line height: 16
  1720. -- part name: 
  1721. ----- HyperTalk script -----
  1722. on mouseup
  1723.   beep
  1724. end mouseup
  1725.  
  1726.  
  1727.  
  1728.  
  1729. -- part 160 (button)
  1730. -- low flags: 00
  1731. -- high flags: 0000
  1732. -- rect: left=436 top=106 right=132 bottom=488
  1733. -- title width / last selected line: 0
  1734. -- icon id / first selected line: 0 / 0
  1735. -- text alignment: 1
  1736. -- font id: 0
  1737. -- text size: 12
  1738. -- style flags: 0
  1739. -- line height: 16
  1740. -- part name: 
  1741. ----- HyperTalk script -----
  1742. on mouseDown
  1743.   put 37 into released             -- CHANGES
  1744.   put 38 into avail
  1745.  
  1746.   if hilite of button released is true or hilite of button avail is true then
  1747.     beep
  1748.     show card field "nono" at the mouseh, the mousev
  1749.   end if
  1750. end mouseDown
  1751.  
  1752. on mouseUp
  1753.   global warning
  1754.   put 39 into standby
  1755.   put "276,129" into coord
  1756.   put 79 into idplane
  1757.  
  1758.   if hilite of button standby is true then
  1759.     if warning is not "L" and warning is not "N" then
  1760.       set hilite of button standby to false
  1761.       set hilite of ME to true
  1762.  
  1763.       show button id idplane of card "map" at coord
  1764.     else
  1765.       beep
  1766.       show card field "outOfRange" at the mouseh, the mousev
  1767.     end if
  1768.   end if
  1769.   hide card field "nono"
  1770. end mouseUp
  1771. on go
  1772.   put 39 into standby
  1773.   put "276,129" into coord
  1774.   put 79 into idplane
  1775.  
  1776.   set hilite of me to false
  1777.   set hilite of button standby to true
  1778.  
  1779.   hide button id idplane of card "map"
  1780.  
  1781. end go
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789. -- part 161 (button)
  1790. -- low flags: 00
  1791. -- high flags: 0000
  1792. -- rect: left=436 top=144 right=172 bottom=488
  1793. -- title width / last selected line: 0
  1794. -- icon id / first selected line: 0 / 0
  1795. -- text alignment: 1
  1796. -- font id: 0
  1797. -- text size: 12
  1798. -- style flags: 0
  1799. -- line height: 16
  1800. -- part name: SQ603D
  1801. ----- HyperTalk script -----
  1802. on mouseUp
  1803.   --global warning,objective,range,range2
  1804.   global avail,standby,patrol,detail,idplane,enroute,warning
  1805.   if warning is empty then
  1806.     beep
  1807.     show card field "whatraid" at the mouseh, the mousev
  1808.     exit mouseUp
  1809.   end if
  1810.  
  1811.   put 38 into avail
  1812.   put 39 into standby
  1813.   put 40 into patrol
  1814.   put 41 into detail                                         --CHANGES
  1815.   put 79 into idplane
  1816.   put "D" into enroute
  1817.   detail
  1818. end mouseUp
  1819.  
  1820. on go
  1821.   global numSquads,force,avail,standby,patrol,detail,idplane
  1822.   put 38 into avail
  1823.   put 39 into standby
  1824.   put 40 into patrol
  1825.   put 41 into detail                                         --CHANGES
  1826.   put 79 into idplane
  1827.   put 171 into sorties
  1828.   if hilite of button patrol is true or hilite of button standby is true then
  1829.     add 3 to force                                        --CHANGES
  1830.     set hilite of button patrol to false
  1831.     set hilite of button standby to false
  1832.   end if
  1833.   if hilite of button avail is true then add 2 to force     --CHANGES
  1834.   put the length of card field id sorties into exp
  1835.   divide exp by 20
  1836.   add exp to force
  1837.   put "/" after card field id sorties
  1838.   goa
  1839. end go
  1840.  
  1841.  
  1842. on results
  1843.   global damage,force,bforce,fforce,done
  1844.   global released,avail,releaseDate,base,coord,idplane,sorties
  1845.   put 37 into released
  1846.   put 38 into avail
  1847.   put 109 into releaseDate                                 --CHANGES
  1848.   put "D" into base
  1849.   put "276,129" into coord
  1850.   put 79 into idplane
  1851.   put 171 into sorties
  1852.   resultsa
  1853. end results
  1854.  
  1855.  
  1856.  
  1857.  
  1858.  
  1859.  
  1860.  
  1861.  
  1862.  
  1863.  
  1864.  
  1865.  
  1866. -- part 162 (button)
  1867. -- low flags: 00
  1868. -- high flags: 0000
  1869. -- rect: left=436 top=171 right=201 bottom=488
  1870. -- title width / last selected line: 0
  1871. -- icon id / first selected line: 0 / 0
  1872. -- text alignment: 1
  1873. -- font id: 0
  1874. -- text size: 12
  1875. -- style flags: 0
  1876. -- line height: 16
  1877. -- part name: 
  1878. ----- HyperTalk script -----
  1879. on mouseUp
  1880.   global coord,patrol,detail,idplane
  1881.   put "276,129" into coord
  1882.   put 79 into idplane
  1883.   put 40 into patrol
  1884.   put 41 into detail                                          --CHANGES
  1885.  
  1886.   land
  1887. end mouseUp
  1888.  
  1889.  
  1890.  
  1891.  
  1892. -- part 169 (field)
  1893. -- low flags: 00
  1894. -- high flags: 0000
  1895. -- rect: left=315 top=254 right=307 bottom=351
  1896. -- title width / last selected line: 0
  1897. -- icon id / first selected line: 0 / 0
  1898. -- text alignment: 0
  1899. -- font id: 3
  1900. -- text size: 9
  1901. -- style flags: 0
  1902. -- line height: 10
  1903. -- part name: sorties
  1904.  
  1905.  
  1906. -- part 170 (field)
  1907. -- low flags: 00
  1908. -- high flags: 0000
  1909. -- rect: left=379 top=254 right=307 bottom=415
  1910. -- title width / last selected line: 0
  1911. -- icon id / first selected line: 0 / 0
  1912. -- text alignment: 0
  1913. -- font id: 3
  1914. -- text size: 9
  1915. -- style flags: 0
  1916. -- line height: 10
  1917. -- part name: sorties
  1918.  
  1919.  
  1920. -- part 171 (field)
  1921. -- low flags: 00
  1922. -- high flags: 0000
  1923. -- rect: left=443 top=254 right=307 bottom=479
  1924. -- title width / last selected line: 0
  1925. -- icon id / first selected line: 0 / 0
  1926. -- text alignment: 0
  1927. -- font id: 3
  1928. -- text size: 9
  1929. -- style flags: 0
  1930. -- line height: 10
  1931. -- part name: sorties
  1932.  
  1933.  
  1934. -- part 163 (button)
  1935. -- low flags: 00
  1936. -- high flags: 0000
  1937. -- rect: left=436 top=200 right=229 bottom=488
  1938. -- title width / last selected line: 0
  1939. -- icon id / first selected line: 0 / 0
  1940. -- text alignment: 1
  1941. -- font id: 0
  1942. -- text size: 12
  1943. -- style flags: 0
  1944. -- line height: 16
  1945. -- part name: 
  1946. ----- HyperTalk script -----
  1947. on mouseUp
  1948.   beep
  1949. end mouseUp
  1950.  
  1951.  
  1952.  
  1953.  
  1954. -- part 168 (field)
  1955. -- low flags: 00
  1956. -- high flags: 0000
  1957. -- rect: left=251 top=254 right=308 bottom=288
  1958. -- title width / last selected line: 0
  1959. -- icon id / first selected line: 0 / 0
  1960. -- text alignment: 0
  1961. -- font id: 3
  1962. -- text size: 9
  1963. -- style flags: 0
  1964. -- line height: 10
  1965. -- part name: sorties
  1966.  
  1967.  
  1968. -- part 166 (field)
  1969. -- low flags: 00
  1970. -- high flags: 0000
  1971. -- rect: left=123 top=254 right=307 bottom=160
  1972. -- title width / last selected line: 0
  1973. -- icon id / first selected line: 0 / 0
  1974. -- text alignment: 0
  1975. -- font id: 3
  1976. -- text size: 9
  1977. -- style flags: 0
  1978. -- line height: 10
  1979. -- part name: sorties
  1980.  
  1981.  
  1982. -- part 31 (field)
  1983. -- low flags: 01
  1984. -- high flags: 0001
  1985. -- rect: left=308 top=0 right=342 bottom=512
  1986. -- title width / last selected line: 0
  1987. -- icon id / first selected line: 0 / 0
  1988. -- text alignment: 0
  1989. -- font id: 3
  1990. -- text size: 12
  1991. -- style flags: 0
  1992. -- line height: 16
  1993. -- part name: hideSquads
  1994.  
  1995.  
  1996. -- part 109 (field)
  1997. -- low flags: 81
  1998. -- high flags: 2004
  1999. -- rect: left=426 top=35 right=90 bottom=501
  2000. -- title width / last selected line: 0
  2001. -- icon id / first selected line: 0 / 0
  2002. -- text alignment: 1
  2003. -- font id: 3
  2004. -- text size: 9
  2005. -- style flags: 0
  2006. -- line height: 10
  2007. -- part name: releaseDate6
  2008. ----- HyperTalk script -----
  2009. on mouseUp
  2010.   hide card field "releaseDate6"
  2011. end mouseUp
  2012.  
  2013.  
  2014.  
  2015. -- part 16 (field)
  2016. -- low flags: 81
  2017. -- high flags: 0004
  2018. -- rect: left=28 top=80 right=149 bottom=116
  2019. -- title width / last selected line: 0
  2020. -- icon id / first selected line: 0 / 0
  2021. -- text alignment: 1
  2022. -- font id: 3
  2023. -- text size: 9
  2024. -- style flags: 0
  2025. -- line height: 12
  2026. -- part name: nono
  2027. ----- HyperTalk script -----
  2028. on mouseUp
  2029.   hide card field id 16
  2030. end mouseUp
  2031.  
  2032.  
  2033.  
  2034. -- part 165 (field)
  2035. -- low flags: 81
  2036. -- high flags: 2004
  2037. -- rect: left=240 top=146 right=171 bottom=296
  2038. -- title width / last selected line: 0
  2039. -- icon id / first selected line: 0 / 0
  2040. -- text alignment: 1
  2041. -- font id: 3
  2042. -- text size: 10
  2043. -- style flags: 0
  2044. -- line height: 12
  2045. -- part name: outOfRange
  2046. ----- HyperTalk script -----
  2047. --on no
  2048. -- beep
  2049. -- show card field "outOfRange" at the mouseh, the mousev
  2050.  
  2051. --end no
  2052.  
  2053. on mouseUp
  2054.   hide card field "outOfRange"
  2055. end mouseUp
  2056.  
  2057.  
  2058. -- part 173 (field)
  2059. -- low flags: 81
  2060. -- high flags: 2004
  2061. -- rect: left=161 top=70 right=94 bottom=226
  2062. -- title width / last selected line: 0
  2063. -- icon id / first selected line: 0 / 0
  2064. -- text alignment: 1
  2065. -- font id: 3
  2066. -- text size: 9
  2067. -- style flags: 0
  2068. -- line height: 10
  2069. -- part name: PUB
  2070. ----- HyperTalk script -----
  2071. ON MOUSEUP
  2072.   HIDE card field "pub"
  2073. END MOUSEUP
  2074.  
  2075.  
  2076.  
  2077.  
  2078. -- part 174 (field)
  2079. -- low flags: 81
  2080. -- high flags: 2004
  2081. -- rect: left=232 top=133 right=175 bottom=306
  2082. -- title width / last selected line: 0
  2083. -- icon id / first selected line: 0 / 0
  2084. -- text alignment: 1
  2085. -- font id: 3
  2086. -- text size: 9
  2087. -- style flags: 0
  2088. -- line height: 10
  2089. -- part name: whatRaid
  2090. ----- HyperTalk script -----
  2091. on mouseUp
  2092.   hide card field "whatRaid"
  2093. end mouseUp
  2094.  
  2095.  
  2096. -- part 63 (field)
  2097. -- low flags: 81
  2098. -- high flags: 2004
  2099. -- rect: left=350 top=34 right=88 bottom=425
  2100. -- title width / last selected line: 0
  2101. -- icon id / first selected line: 0 / 0
  2102. -- text alignment: 1
  2103. -- font id: 3
  2104. -- text size: 9
  2105. -- style flags: 0
  2106. -- line height: 10
  2107. -- part name: releaseDate5
  2108. ----- HyperTalk script -----
  2109. on mouseUp
  2110.   hide card field "releaseDate5"
  2111. end mouseUp
  2112.  
  2113.  
  2114.  
  2115. -- part 176 (field)
  2116. -- low flags: 81
  2117. -- high flags: 2004
  2118. -- rect: left=102 top=9 right=106 bottom=510
  2119. -- title width / last selected line: 0
  2120. -- icon id / first selected line: 0 / 0
  2121. -- text alignment: 1
  2122. -- font id: 2
  2123. -- text size: 20
  2124. -- style flags: 8192
  2125. -- line height: 22
  2126. -- part name: shutdown
  2127.  
  2128.  
  2129. -- part 60 (field)
  2130. -- low flags: 81
  2131. -- high flags: 2004
  2132. -- rect: left=169 top=33 right=89 bottom=244
  2133. -- title width / last selected line: 0
  2134. -- icon id / first selected line: 0 / 0
  2135. -- text alignment: 1
  2136. -- font id: 3
  2137. -- text size: 9
  2138. -- style flags: 0
  2139. -- line height: 10
  2140. -- part name: releaseDate2
  2141. ----- HyperTalk script -----
  2142. on mouseUp
  2143.   hide card field "releaseDate2"
  2144. end mouseUp
  2145.  
  2146.  
  2147.  
  2148. -- part contents for card part 16
  2149. ----- text -----
  2150. You cannot order a RELEASED or AVAILABLE squadron on patrol.
  2151.  
  2152. -- part contents for card part 60
  2153. ----- text -----
  2154. AVAILABLE
  2155. IN 1 DAY
  2156. PATCHING UP PLANES
  2157.  
  2158. -- part contents for card part 61
  2159. ----- text -----
  2160. AVAILABLE
  2161. IN 4 DAYS
  2162. PATCHING UP PLANES
  2163.  
  2164. -- part contents for card part 62
  2165. ----- text -----
  2166. AVAILABLE
  2167. IN 4 DAYS
  2168. PATCHING UP PLANES
  2169.  
  2170.  
  2171. -- part contents for card part 63
  2172. ----- text -----
  2173. AVAILABLE
  2174. IN 4 DAYS
  2175. PATCHING UP PLANES
  2176.  
  2177.  
  2178. -- part contents for card part 109
  2179. ----- text -----
  2180. AVAILABLE
  2181. IN 4 DAYS
  2182. PATCHING UP PLANES
  2183.  
  2184.  
  2185. -- part contents for card part 165
  2186. ----- text -----
  2187. Too Far.
  2188.  
  2189. -- part contents for card part 28
  2190. ----- text -----
  2191. AVAILABLE
  2192. IN 0 DAYS
  2193. PATCHING UP PLANES
  2194.  
  2195.  
  2196. -- part contents for card part 173
  2197. ----- text -----
  2198. At the pub.
  2199.  
  2200. -- part contents for card part 174
  2201. ----- text -----
  2202.  
  2203. What raid?
  2204.  
  2205. -- part contents for card part 176
  2206. ----- text -----
  2207. DUE TO  BOMB DAMAGE 
  2208. NORMAL OPERATIONS AT THIS AERODROME ARE TEMPORARILY DISRUPTED.
  2209. USE CAUTION.